package com.victor.entity.finefood;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 美食套餐表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "food_meal")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FoodMeal {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "m_id", unique = true, nullable = false, length = 11)
	private Integer m_id;

	@Column(name = "f_id", length = 50)
	private String f_id;// 美食饭店id
	
	@Column(name = "m_name", length = 50)
	private String m_name;// 美食套餐名称
	
	@Column(name = "m_price", length = 50)
	private String m_price;// 美食套餐价格
	
	@Column(name = "m_detailed", length = 50)
	private String m_detailed;// 美食套餐详细
	
	@Column(name = "m_notestobuy", length = 50)
	private String m_notestobuy;// 美食购买须知
	
	@Transient
	private List<FoodMealPhoto> foodMealPhotos;// 多张美食套餐介绍图片
}
